package com.qriver.modules;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

import com.qriver.modules.filter.AccessGlobalFilter;

/**
 * 网关路由
 * @author hsh
 *
 */
@SpringBootApplication
@EnableFeignClients
public class GatewayApplication {
	
	
	public static void main(String[] args) {
		SpringApplication.run(GatewayApplication.class, args);
	}
	
	@Bean 
	public AccessGlobalFilter tokenFilter(){
		return new AccessGlobalFilter(); 
	}
	 
}
